package it.gommonauti.patenti.exception;

/**
 * @author Francesco Stallone ( f.stallone73@gmail.com ).
 * 
 * The application exception.
 */
public class ApplicationException extends Throwable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5092632631080875066L;

	public enum ExceptionTypes {
		NO_DATA,
		TOO_MANY_DATA,
		NO_CLASS_EXCEPTION,
		INSUFFICIENT_DATA
	};
	
	private String types;
	
	@SuppressWarnings("unused")
	private ApplicationException(){
		
	}

	public ApplicationException(ExceptionTypes types){
		this.types = types.name();
	}

	/**
	 * @return the types
	 */
	public String getTypes() {
		return types;
	}
	
}
